package com.cd.controller;

import com.cd.common.controller.BaseController;
import com.cd.system.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("/good")
public class GoodController extends BaseController {

    @Autowired
    TestService testService;

    @RequestMapping(value = "/secKill/{goodId}",method = RequestMethod.POST)
    public Object secKill(@PathVariable(value = "goodId", required = true) Long goodId){
        return testService.seckill(goodId);
    }
}
